package com.liuguangzhou.service.impl;

import com.liuguangzhou.domain.User;
import com.liuguangzhou.dao.UserMapper;
import com.liuguangzhou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description: TODO
 * @Author liuguangzhou
 * @Date 2020/3/10
 * @Version V1.0
 **/
@Service
public class UserServiceImpl implements UserService {
   @Autowired
   private UserMapper userMapper;
    public User findByname(String name) {
        return userMapper.findByName(name);
    }

    public User findByid(Integer id) {
        return userMapper.findById(id);
    }
}
